package com.arpa.ntocc.common.domain.dto;

import com.arpa.ntocc.common.domain.entity.BasicEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * 货主form表单对象DTO
 * @Author liuyj
 * @Date 2019-12-23 09:00:36
 */
@Data
@ApiModel(value="ShipmentFromDTO对象", description="入驻商form表单对象")
public class ShipmentFromDTO extends BasicEntity {

    @ApiModelProperty(value = "入驻商标识")
    private String code;

    @ApiModelProperty(value = "机构code，对应sys_party_group表code")
    private String branchCode;

    @ApiModelProperty(value = "入驻商编码")
    @NotEmpty(message = "入驻商编码不能为空", groups = {Save.class, Update.class})
    private String partyCode;

    @ApiModelProperty(value = "入驻商名称")
    @NotEmpty(message = "入驻商名称不能为空", groups = {Save.class, Update.class})
    private String userName;


    @ApiModelProperty(value = "联系人")
    @NotEmpty(message = "联系人不能为空")
    @Length(max = 10, message = "联系人长度不能大于10个字符", groups = {Save.class, Update.class})
    private String contacts;

    @ApiModelProperty(value = "手机号")
    @NotEmpty(message = "手机号不能为空")
    @Length(max = 32, message = "手机号长度不能大于32个字符", groups = {Save.class, Update.class})
    private String phone;


    @ApiModelProperty(value = "身份证号")
    @Length(max = 20, message = "身份证号不能大于20个字符", groups = {Save.class, Update.class})
    private String identificationNumber;


    @ApiModelProperty(value = "法人姓名")
    @Length(max = 100, message = "法人姓名不能大于100个字符", groups = {Save.class, Update.class})
    private String legalPerson;

    @ApiModelProperty(value = "信用代码")
    @Length(max = 100, message = "信用代码不能大于100个字符", groups = {Save.class, Update.class})
    private String businessLicenseImgNumber;

    @ApiModelProperty(value = "税点")
    @Length(max = 10, message = "税点长度不能大于10个字符", groups = {Save.class, Update.class})
    private String taxPoint;

    @ApiModelProperty(value = "区域信息")
    private List<String> areaList;

    @ApiModelProperty(value = "省编码")
    private String provinceCode;

    @ApiModelProperty(value = "市编码")
    private String cityCode;

    @ApiModelProperty(value = "县/区编码")
    private String countyCode;

    @ApiModelProperty(value = "地址")
    @Length(max = 500, message = "地址不能大于500个字符", groups = {Save.class, Update.class})
    private String address;


    @ApiModelProperty(value = "是否结算：0不结算，1结算")
    private Integer settlement;

    @ApiModelProperty(value = "备注")
    @Length(max = 255, message = "备注不能大于255个字符", groups = {Save.class, Update.class})
    private String remark;

    @ApiModelProperty(value = "创建人名称")
    private String createdName;

    @ApiModelProperty(value = "修改人名称")
    private String modifiedName;

    @ApiModelProperty(value = "erp编码")
    private String erpCode;

    @ApiModelProperty(value = "是否复核:0不复核，1复核")
    private Integer review;

    @ApiModelProperty(value = "审核状态：0未审核/1审核中/2审核未通过/3审核通过")
    private Integer authStatus;

    public interface Save {

    }

    public interface Update {

    }

}
